/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'
import RangeLineView from '@/views/twentyfour/index.vue'
import { generateRangeRoutes } from '@/utils/study.js'

const CATE_VALUE_STRING = 'Twentyfour'
const CATE_VALUE_PREFIX = `${CATE_VALUE_STRING.toUpperCase()}_`

const rangeList = generateRangeRoutes(CATE_VALUE_PREFIX, CATE_VALUE_STRING, RangeLineView, true)

const chartsRouter = {
  path: '/twentyfour',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Cate' + CATE_VALUE_STRING,
  meta: {
    title: '÷2 twenty four',
    icon: 'line-chart'
  },
  children: [
    {
      path: 'ascending-lt',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'AscendingLT',
      meta: {
        // title: 'ascending',
        title: 'large small lt',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'ASCENDING_25_LT_GROUPS'
      }
    },
    {
      path: 'ascending-gt',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'AscendingGT',
      meta: {
        // title: 'ascending',
        title: 'large small gt',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'ASCENDING_25_GT_GROUPS'
      }
    },
    {
      path: 'odd-even',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'OddEven',
      meta: {
        title: 'odd even',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'ODD_EVEN_GROUPS'
      }
    },
    {
      path: 'center-expansion-lt',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'CenterExpansionLT',
      meta: {
        title: 'center expansion lt',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'CENTER_EXPANSION_LT_GROUPS'
      }
    },
    {
      path: 'center-expansion-gt',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'CenterExpansionGT',
      meta: {
        title: 'center expansion gt',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'CENTER_EXPANSION_GT_GROUPS'
      }
    },
    {
      path: 'prime-lt',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'PrimeLT',
      meta: {
        title: 'prime lt',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'PRIME_LT_GROUPS'
      }
    },
    {
      path: 'prime-gt',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'PrimeGT',
      meta: {
        title: 'prime gt',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'PRIME_GT_GROUPS'
      }
    },
    {
      path: 'last-digit',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'LastDigit',
      meta: {
        title: 'last digit',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'LAST_DIGIT_GROUPS'
      }
    },
    {
      path: 'modulo-three',
      component: RangeLineView,
      name: CATE_VALUE_STRING + 'ModuloThree',
      meta: {
        title: 'modulo three',
        noCache: true,
        groupsKey: CATE_VALUE_PREFIX + 'MODULO_THREE_GROUPS'
      }
    },
    ...rangeList
  ]
}

export default chartsRouter
